package org.jeecg.modules.sggg.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.sggg.entity.SgFollowUp;
import org.jeecg.modules.sggg.mapper.SgFollowUpMapper;
import org.jeecg.modules.sggg.service.ISgFollowUpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Description: 随访表
 * @Author: jeecg-boot
 * @Date: 2022-10-27
 * @Version: V1.0
 */
@Service
public class SgFollowUpServiceImpl extends ServiceImpl<SgFollowUpMapper, SgFollowUp> implements ISgFollowUpService {

    @Autowired
    private SgFollowUpMapper sgFollowUpMapper;

    @Override
    public IPage<SgFollowUp> queryList(Page<SgFollowUp> page, String name, String idCard, String phone, String sysOrgCode, String check, Date followUpDate, String memberId) {
        return sgFollowUpMapper.queryList(page, name, idCard, phone, sysOrgCode, check, followUpDate, memberId);
    }

    @Override
    public List<Map<String, Object>> monthlyFollowUp(String orgCode, String createTime, String updateTime) {
        return sgFollowUpMapper.monthlyFollowUp(orgCode, createTime, updateTime);
    }
}
